home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Starter / Source / Document.h < prev    next >
Text File  |  1995-06-12  |  991b  |  49 lines

  1.  
  2. #import <appkit/appkit.h>
  3.  
  4. @interface Document:Object
  5. {
  6.     id window;
  7.     const char *documentName, *documentPath;
  8.     int tag;
  9.     unsigned long createTime, lastModifyTime;
  10. }
  11.  
  12.  
  13. /* ==== init section ==== */
  14. - init;
  15. - awakeFromNib;
  16.  
  17. /* ==== access to instance variables ==== */
  18. - window;
  19. - (int)tag;
  20. - setTag:(int)aTag;
  21. - (const char *)documentName;
  22. - (const char *)documentPath;
  23. - setDocumentName:(const char *)aName;
  24. - setDocumentPath:(const char *)aPath;
  25. - getInspectorData:(const char **)nm :(const char **)pth :(int *)t
  26.         :(unsigned long *)ct :(unsigned long *)lt;
  27.  
  28. /* ==== file handling ==== */
  29. - setupNewDoc:(const char *)newPath;
  30. - (BOOL)openDocFile:(const char *)aPath;
  31. - saveDocument;
  32. - saveDocumentAs:(const char *)aPath;
  33. - saveDocumentTo:(const char *)aPath;
  34.  
  35. /* ==== Window delegate methods ==== */
  36. - windowDidBecomeKey:sender;
  37. - windowWillClose:sender;
  38. - windowDidUpdate:sender;
  39. - windowDidResize:sender;
  40.  
  41. /* ==== Edit methods ==== */
  42.  
  43. - delete:sender;
  44. - selectAll:sender;
  45.  
  46.  
  47. - free;
  48. @end
  49.